import {
    observable,
    action
} from "mobx-miniprogram";
import {
    AjaxSystem
} from "../common/apis/system";

export const SystemStore = observable({
    // 部门小组用户联动数据
    deptTeamUserList: [],
    getDeptTeamUserList: action(function () {
        const self = this
        AjaxSystem.getDeptTeamUser(({
            code, 
            data
        }) => {
            if (code === 200) {
                self.deptTeamUserList = data
            }
        })
    })
});